#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <jansson.h>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_image.h>

#include "config_file.h"
#include "calendar.h"
#include "draw_sdl.h"

int main()
{
	DImage *bg_image=NULL;
	DFont *font=NULL;
	config_values_reset();
	calendar_init();
	load_config_file("calendar.json");
	if (v_grid == TRUE)
	{
		printf("Grid True;\n");
	}
	if (v_grid == FALSE)
	{
		printf("Grid False;\n");
	}
	if (v_month == TRUE)
	{
		printf("Month True;\n");
	}
	if (v_month == FALSE)
	{
		printf("Month False;\n");
	}
	printf("Color: %6x\n",v_color);
	printf("Image: %s\n",v_bg_path);
	printf("Font: %s\n",v_font_path);
	printf("Font-Size: %d\n",v_font_size);
	
	draw_init();
	calendar_draw();
	draw_quit();
	config_gcollector();
	calendar_gcollector();
	return 0;
}
